from django.urls import re_path
from rest_framework.routers import DefaultRouter
from apps.vadmin.stock.views import StockViewSet

router = DefaultRouter()
urlpatterns = [
    re_path('day', StockViewSet.as_view({'get': 'day'})),
    re_path('day2/', StockViewSet.as_view({'get': 'day'})),
    re_path('time', StockViewSet.as_view({'get': 'time'})),
    re_path('gettype', StockViewSet.as_view({'get': 'gettype'})),
    re_path('risk_summary', StockViewSet.as_view({'get': 'risk_summary'})),
    re_path('risk_secondary_name_mapping', StockViewSet.as_view({'get': 'risk_secondary_name_mapping'})),
    re_path('risk_show_name_mapping', StockViewSet.as_view({'get': 'risk_show_name_mapping'})),
]
urlpatterns+=router.urls
